<div id="titulo">Edit S. Inbound</div>
<?php echo form_open_multipart('setupinbaund/save', array('name' => 'estatus','id' => 'commentForm'));?>
	<table class="tablaform" width="100%" border="0">		
		<tr>
			<td><b>Servicio:</b> </td>
			<td>
			   <select name="service">
			     <?php foreach ($objetoServicio as $k):?>
			        <option value="<?php echo $k->getIdServicio()?>" 
			                      <?php 
			                         if ($k->getIdServicio() == $objetoDataSetup->getIdService()):
			                           echo "selected='selected'";
			                         endif;
			                      ?>
			        
			        ><?php echo $k->getNombreServicio()?></option>     
			     <?php endforeach;?>
			    </select>
			</td>
		</tr>
		
		<tr>
			<td><b>Tipo:</b> </td>
			<td>
			    <select name="tipo">
			         <?php if ($objetoDataSetup->getType() == "SMS"): ?>
			              <option value="SMS" selected="selected">SMS</option>
			              <option value="MAIL">MAIL</option>                
			         <?php elseif($objetoDataSetup->getType() == "MAIL"): ?>
			              <option value="SMS" >SMS</option>
			              <option value="MAIL" selected="selected">MAIL</option>                
			         <?php endif; ?> 			       
			    </select>
			</td>
		</tr>
		
		<tr>
			<td><b>Script:</b> </td>
			<td> 
			    <select name="script">
			     <?php foreach ($objetoScript as $k):?>
			        <option value="<?php echo $k->getIdScripst()?>
			                        <?php 
			                           if ($k->getIdScripst() == $objetoDataSetup->getIdScript()):
			                               echo "selected='selected'";
			                           endif;
			                         ?>"><?php echo $k->getTitleScript()?></option>     
			     <?php endforeach;?>
			    </select>
			</td>
		</tr>
		<input type="hidden" name="id" value="<?php echo $objetoDataSetup->getId(); ?>"></input>
     	<tr><td colspan="2"><hr /></td></tr>
		<tr><td><input type="submit" value="Guardar" /></td>
		 <td><a href="<?php echo site_url().'/setupinbaund' ?>"><input type="button" value="Atras" align="center"/></a></td>
		</tr>
	</table>
</form>